// 登录请求的所有api都放在此文件中

import request from '@/utils/request'

// 获取图形验证码
export const getCode = () => {
    return request.get('/captcha/image')
}

export const getSMSCode = (captchaCode, captchaKey, mobile) => {
    return request.post('/captcha/sendSmsCaptcha', {
        form: {
            /**
             * 图形验证码
             */
            captchaCode,
            /**
             * 图形验证码key
             */
            captchaKey,
            /**
             * 接收验证码手机
             */
            mobile
        }
    })
}
export const loginSystemScore = (mobile, smsCode) => {
    return request.post('/score/login', {
        "mobile": "13707616275",
        "code": "123456"
    })
}
export const loginGetCodeScore = (mobile) => {
    return request.get(`/score/login/code?mobile=${mobile}`)
}
export const loginGetCode2 = (mobile, smsCode) => {
    return request.get('/admin/register/code?mobile=13707616275')
}
export const loginGetCode3 = (mobile, smsCode) => {
    return request.get(`/admin/register/code?mobile=${mobile}`)
}
export const loginSystem2 = (mobile, smsCode) => {
    return request.post('admin/sponsorAccount/smsLogin', {
        "mobile": "13707616275",
        "code": "123456"
    })
}